<div class="panel-left">

<div id="menuleft">
    <div class="category-header-right">
        <div class="category-header-left">
            <div class="category-header-bg">
                <p>Danh mục sản phẩm</p>
            </div>
        </div>
    </div>    
    <div class="panel-top-right"><div class="panel-top-left"><div class="panel-top-bg"></div></div></div>
    <div id="menu-body">                   
        <div id="menu-body-top">
        <div id="menu-body-bottom">
                             
                <?
					$rs = $db->query("select * from ".$prefix."loaisanpham where c_hienthi = 1 and c_id_cha = 0 order by c_thutu ASC");
					while($row = $db->fetch_array($rs)){
					$c_ten = stripslashes($row[c_ten]);
					$c_id = $row[c_id];
				?>       
                    <div class="category-header-1st">
                        <a href="<?=$root?>/danh-muc-san-pham/<?=$c_id?>/<?=$myString->vietdecode($c_ten)?>"><?=$c_ten?></a>
                    </div>           
                        <? 
							$rs2 = $db->query("select * from ".$prefix."loaisanpham where c_hienthi = 1 and c_id_cha = ".$c_id." order by c_thutu ASC");
							while($row2 = $db->fetch_array($rs2)){
								$c_ten2 = stripslashes($row2[c_ten]);
								$c_id2 = $row2[c_id];
								
						?>
                            <div class="category-items">
	                            <span><a href="<?=$root?>/danh-muc-san-pham/<?=$c_id2?>/<?=$myString->vietdecode($c_ten2)?>"><?=$c_ten2?> (<?=LaySoLuongSanPham($c_id2)?>)</a></span>
                            </div>   
						<? } ?>	
				  <? } ?>         
                  
            <br />  
        </div>
        </div>         
    </div>
    <div class="panel-bottom-right">
        <div class="panel-bottom-left">
            <div class="panel-bottom-bg"></div>
        </div>
    </div>    
</div>
<?
	file_exist("includes/inc_left_khuyenmai.php");
	include("includes/inc_left_khuyenmai.php");
?>
</div>